home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / lib / tasksel / tests / lang < prev    next >
Text File  |  2009-10-22  |  494b  |  20 lines

  1. #!/bin/sh
  2. # Hide all language tasks, and select any that match the current LANG
  3. # setting for installation.
  4. if [ "$NEW_INSTALL" ]; then
  5.     set -e
  6.     shift 1
  7.     baselang=${LANG%%_*}
  8.     fulllang=${LANG%%.*}
  9.     for locale in $@; do
  10.         if ( [ -n "$LANG" ] && [ "$LANG" = "$locale" ] ) || \
  11.            ( [ -n "$fulllang" ] && [ "$fulllang" = "$locale" ] ) || \
  12.            ( [ -n "$baselang" ] && [ "$baselang" = "$locale" ] ); then
  13.            exit 0 # install without display
  14.         fi
  15.     done
  16.     exit 1 # do not display
  17. else
  18.     exit 1
  19. fi
  20.